package org.divineryang.mapper;

import org.apache.ibatis.annotations.Param;
import org.divineryang.model.entity.product.Category;

import java.util.List;

/**
 * @program new-bee
 * @Description
 * @Author Diviner Yang
 * @Date 2024/04/23 9:55
 * @Version 1.0
 */
public interface CategoryMapper {
    List<Category> selectByParentId(Long parentId);

    int countByParentId(Long id);

    List<Category> selectAll();

    void batchInsert(@Param("cachedDataList") List cachedDataList);
}
